package net.devkit.test;

import java.util.LinkedHashMap;

import javax.annotation.Resource;

import net.devkit.core.module.sys.service.UserServicer;
import net.devkit.core.pojo.db.User;
import net.devkit.core.pojo.helper.PagerHelper;


//@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration(locations={"classpath*:spring/spring-core.xml"})
public class GenericDaoTester {

	@Resource(name="UserServicer")
	private UserServicer userServicer;
	//@Test
	public void test(){
		PagerHelper helper = new PagerHelper();
		helper.setOrder(new LinkedHashMap<String,String>(){{
			put("sex", PagerHelper.ORDER_RULE_ASC);
		}});
		for(User user : userServicer.findUserPager(helper).getResult()){
			System.out.println(user.getId());
		}
	}
}
